
class AssertUtil:

    #封装断言的方法
    @classmethod
    def assert_common(cls, resp, status_code, status, msg):
        assert status_code == resp.status_code
        assert status == resp.json().get("status")
        assert msg == resp.json().get("msg")

    #封装ihrm断言方法
    @classmethod
    def assert_ihrm_common(cls,resp,status_code,success,code,message):

        assert status_code == resp.status_code
        assert success == resp.json().get("success")
        assert code == resp.json().get("code")
        assert message == resp.json().get("message")

